fix: emulate get_state for /~witnesses and /proposals paths#255
Merged
Conversation
steemd returns -32000 Server error for get_state(/~witnesses) and get_state(/proposals), causing wallet SSR to timeout with 504. This extends the get_state workaround to intercept these special paths and return a minimal synthetic response with feed_price, props, etc. The actual witness/proposal data is fetched client-side via separate API calls. Also cleans up DEBUG slog.Info calls from previous PR, converting them to slog.Debug for production-appropriate logging. DEPRECATED: All get_state workarounds in this file will be removed once the condenser rewrite and wallet rewrite are deployed. Both new versions do not use get_state at all.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
steemd returns -32000 Server error for get_state(/~witnesses) and get_state(/proposals), causing wallet SSR 504.
Extends get_state_workaround.go to intercept these paths, fetch base state via get_state(/) for feed_price/props, and return minimal synthetic response. Actual data fetched client-side.
Also cleans up DEBUG slog.Info from PR 253 to slog.Debug.
DEPRECATED: All get_state workarounds will be removed after condenser rewrite + wallet rewrite launch.